import { createStore, Store, useStore as baseUseStore } from 'vuex'
import { IRootState, IStoreType } from './types'
import loginModule from './login/login'
const store = createStore<IRootState>({
  state: () => {
    return {
      rootState1: '',
      rootState2: ''
    }
  },
  getters: {},
  mutations: {},
  actions: {},
  modules: {
    login: loginModule
  }
})
export function useStore(): Store<IStoreType> {
  return baseUseStore()
}
export default store
